package com.example.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.gulimall.common.utils.PageUtils;
import com.example.gulimall.product.entity.AttrGroupEntity;
import com.example.gulimall.product.vo.AttrGroupRelationVo;
import com.example.gulimall.product.vo.AttrGroupWithAttrsRespVo;
import com.example.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author xie
 * @email 2949459108@gmail.com
 * @date 2024-01-18 21:07:08
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     *
     * @param params 页码查询参数
     * @param cateLogId Id
     * @return
     */
    PageUtils queryPage(Map<String, Object> params, Long cateLogId);


    /**
     * 删除属性分组以及关联
     * @param asList
     */
    void removeAttrGroupByIds(List<Long> asList);

    /**
     * 获取分类下所有分组和关联属性
     * @param catalogId
     * @return
     */
    List<AttrGroupWithAttrsRespVo> getAttrGroupsWithAttrs(Long catalogId);
}

